Encoding system using motion estimation and encoding method using motion estimation

ABSTRACT

Provided are an encoding system using motion estimation and an encoding method using motion estimation for achieving high-speed motion estimation according to a multi-processing unit. The encoding system using motion estimation, comprises a multi-processing unit calculating motion estimation on many macroblocks of an input image, a motion estimator estimating motion vectors of the macroblocks of the input image using the motion estimation on the plurality of macroblocks, previously calculated by the multi-processing unit, and an encoder encoding the image based on the motion vectors of the macroblocks, estimated by the motion estimator. According to the present invention, motion estimation to be used for motion estimation can be calculated in advance according to the multi-processing unit capable of processing high-speed parallel processing to reduce an image encoding time and improve an encoding speed.

TECHNICAL FIELD

The present invention relates to an encoding system using motion estimation, and more particularly, to an encoding system using motion estimation and an encoding method using motion estimation for processing operations required for motion estimation according to a multi-processing unit capable of performing high-speed processing to achieve high-speed motion estimation.

BACKGROUND ART

Digitalization and image compression techniques are core elements supporting multimedia. Image compression becomes very important as information is rapidly digitalized.

An MPEG based video encoder removes image repetition in a temporal direction using motion estimation. Particularly, h.264 can obtain a compression rate higher than that of a conventional MPEG video encoder by using an improved motion estimation method such as quarter pel based motion estimation, motion estimation using a variable block, motion estimation using multiple frame referencing, estimation using weights and Lagrange cost based motion estimation. However, the h.264 has to process a large quantity of computations as compared to the conventional MPEG video encoder because the h.264 uses the improved motion estimation method.

A motion estimation algorithm of the h.264 estimates a motion vector Mp of a current macroblock from a motion vector of a previous macroblock, obtains a cost that considers the quantity of data required to encode a difference between the motion vector Mp and an initially estimated motion vector together with a video error in motion estimation through Lagrange multiplier represented by Equation 1 and estimates a candidate motion vector Mv corresponding to a smallest cost as a final motion vector to improve encoding efficiency.

$\begin{matrix} {{\text{?}\text{?}\text{indicates text missing or illegible when filed}}\mspace{194mu}} & \left\lbrack {{Equation}\mspace{14mu} 1} \right\rbrack \end{matrix}$

A conventional hardware based motion estimation system supporting the afore-mentioned motion estimation algorithm performs encoding macroblock by macroblock, encodes a single macroblock, and then processes the next macroblock in a raster scan direction.

The conventional hardware based motion estimation system supporting the motion estimation algorithm has to process the quantity of computations multiple times the quantity of computations processed by conventional MPEG-1,2,4 video encoders to encode a single frame, and thus a relatively long encoding time t is required and most of the encoding time t is consumed for operations for motion estimation.

Recently, a system capable of simultaneously processing a large number of computations in parallel has been developed with the development of hardware. Particularly, graphic hardware based on a graphic process unit (GPU) includes many processing units for processing 3D images in a single system.

Accordingly, the present invention improves the operation processing speed of an h.264 encoder by using many processors capable of simultaneously processing a large number of computations in parallel.

DISCLOSURE OF INVENTION Technical Problem

Accordingly, the present invention has been made to solve the above-mentioned problems occurring in the conventional art, and a primary object of the present invention is to provide an encoding system capable of achieving high-speed motion estimation, which comprises a multi-processing unit calculating motion estimation on many macroblocks of an input image, a motion estimator estimating motion vectors of the macroblocks of the input image using the motion estimation on the plurality of macroblocks, previously calculated by the multi-processing unit, and an encoder encoding the image based on the motion vectors of the macroblocks, estimated by the motion estimator.

Another object of the present invention is to provide an encoding system using motion estimation, which comprises a frame buffer delaying an input image and outputting the delayed image, a multi-processing unit calculating motion estimation on many macroblocks of a current frame of the input image on the basis of the current frame of the input image and a delayed previous frame from the frame buffer, a motion estimator estimating motion vectors of macroblocks of the image using the motion estimation on the plurality of macroblocks, previously calculated by the multiprocessing unit, and an encoder encoding the image based on the motion vectors of the macroblocks, estimated by the motion estimator.

Still another object of the present invention is to provide an encoding method using motion estimation, which comprises the steps of calculating motion estimation on many macroblocks of an input image in advance in a multi-processing unit, estimating motion vectors of the macroblocks of the input image using the motion estimation on the plurality of macroblocks, previously calculated by the multi-processing unit, and encoding the image based on the motion vectors of the macroblocks.

Yet another object of the present invention is to an encoding method using motion estimation, which comprises the steps of delaying an input image and outputting the delayed image, calculating motion estimation on many macroblocks of a current frame of the input image in advance on the basis of the current frame of the input image and the delayed previous frame in a multi-processing unit, estimating motion vectors of macroblocks of the image using the motion estimation on the plurality of macroblocks, previously calculated by the multi-processing unit, and encoding the image based on the motion vectors of the macroblocks.

Technical Solution

To accomplish the objects of the present invention, an encoding system using motion estimation according to a first aspect of the present invention comprises a multiprocessing unit calculating motion estimation on many macroblocks of an input image, a motion estimator estimating motion vectors of the macroblocks of the input image using the motion estimation information of the macroblocks, previously calculated by the multi-processing unit, and an encoder encoding the image based on the motion vectors of the macroblocks, estimated by the motion estimator.

The motion estimator may estimate motion vectors of many macroblocks included in frames of the image in a raster scan direction using the motion estimation information previously calculated by the multi-processing unit.

The multi-processing unit may calculate the motion estimation information at least one frame prior to a frame of the image, which is processed by the motion estimator or the encoder.

The multi-processing unit may calculate SAD values or SSD values for the motion vectors of the macroblocks.

The motion estimator may estimate the motion vectors of the macroblocks using the motion estimation information on the macroblocks, previously calculated by the multiprocessing unit, on the assumption that the estimated motion vector of the previous macroblock corresponds to a predetermined fixed value.

The multi-processing unit may calculate SAD values or SSD values for the motion vectors of the macroblocks and calculates costs of the macroblocks according to the following equation based on Lagrange cost using the SAD values or SSD values and the estimated motion vector of the previous macroblock, which is assumed to be the predetermined fixed value.

where Cost denotes the quantity of bits required to encode a motion vector, Mv represents a candidate motion vector corresponding to a macroblock for which a motion vector will be estimated, and Mp denotes a motion vector estimated from the previous macroblock of the macroblock.

The predetermined fixed value may correspond to (0, 0).

The motion estimator may estimate a candidate motion vector corresponding to a minimum cost among costs of a macroblock, previously calculated by the multiprocessing units, as a motion vector of the macroblock.

The encoding system may further comprise a motion vector storage unit storing the motion vectors of the macroblocks, estimated by the motion estimator.

To accomplish the objects of the present invention, an encoding system using motion estimation according to a second aspect of the present invention comprises a frame buffer delaying an input image and outputting the delayed image, a multi-processing unit calculating motion estimation information of macroblocks of a current frame of the input image on the basis of the current frame of the input image and a delayed previous frame from the frame buffer, a motion estimator estimating motion vectors of macroblocks of the image using the motion estimation on the plurality of macroblocks, previously calculated by the multi-processing unit, and an encoder encoding the image based on the motion vectors of the macroblocks, estimated by the motion estimator.

The motion estimator may estimate motion vectors of many macroblocks included in frames of the image in a raster scan direction using the motion estimation previously calculated by the multi-processing unit.

The multi-processing unit may calculate the motion estimation at least one frame prior to a frame of the image, which is processed by the motion estimator or the encoder.

The multi-processing unit may calculate SAD values or SSD values for the motion vectors of the plurality of macroblocks as the motion estimation on the plurality of macroblocks.

The multi-processing unit may calculate SAD values or SSD values for the motion vectors of the macroblocks and calculates costs of the macroblocks according to the following equation based on Lagrange cost using the SAD values or SSD values and an estimated motion vector of a previous macroblock, which is assumed to be a pre-determined fixed value, as the motion estimation on the plurality of macroblocks.

where Cost denotes the quantity of bits required to encode a motion vector, Mv represents a candidate motion vector corresponding to a macroblock for which a motion vector will be estimated, and Mp denotes a motion vector estimated from the previous macroblock of the macroblock.

The predetermined fixed value of the estimated motion vector may correspond to (0,0).

The motion estimator may estimate a candidate motion vector corresponding to a minimum cost among costs of a macroblock, previously calculated by the multi-processing units, as a motion vector of the macroblock.

To accomplish the objects of the present invention, an encoding method using motion estimation according to a third aspect of the present invention comprises the steps of calculating motion estimation on many macroblocks of an input image in advance in a multi-processing unit, estimating motion vectors of the macroblocks of the input image using the motion estimation on the plurality of macroblocks, previously calculated by the multi-processing unit, and encoding the image based on the motion vectors of the macroblocks.

The step of estimating the motion vectors of the macroblocks may estimate motion vectors of many macroblocks included in frames of the image in a raster scan direction using the motion estimation previously calculated by the multi-processing unit.

The step of calculating the motion estimation in advance may calculate the motion estimation at least one frame prior to the step of estimating the motion vectors of the step of encoding the image.

The step of calculating the motion estimation in advance may calculate SAD values or SSD values for the motion vectors of the plurality of macroblocks as the motion estimation on the plurality of macroblocks.

The step of calculating the motion estimation in advance may comprise the steps of calculating SAD values or SSD values for the motion vectors of the macroblocks and calculating costs of the macroblocks according to the following equation based on Lagrange cost using the SAD values or SSD values and an estimated motion vector of a previous macroblock, which is assumed to be a predetermined fixed value, as the motion estimation on the plurality of macroblocks.

where Cost denotes the quantity of bits required to encode a motion vector, Mv represents a candidate motion vector corresponding to a macroblock for which a motion vector will be estimated, and Mp denotes a motion vector estimated from the previous macroblock of the macroblock.

The predetermined fixed value of the estimated motion vector may correspond to (0,0).

The step of estimating the motion vectors of the macroblocks may estimate a candidate motion vector corresponding to a minimum cost among costs of a macroblock, previously calculated by the multi-processing units, as a motion vector of the macroblock.

To accomplish the objects of the present invention, an encoding method using motion estimation according to a fourth aspect of the present invention comprises the steps of delaying an input image and outputting the delayed image, calculating motion estimation on many macroblocks of a current frame of the input image in advance on the basis of the current frame of the input image and the delayed previous frame in a multi-processing unit, estimating motion vectors of macroblocks of the image using the motion estimation on the plurality of macroblocks, previously calculated by the multiprocessing unit, and encoding the image based on the motion vectors of the macroblocks.

The step of estimating the motion vectors of the macroblocks may estimate motion vectors of many macroblocks included in frames of the image in a raster scan direction using the motion estimation previously calculated by the multi-processing unit.

The step of calculating the motion estimation in advance may calculate the motion estimation at least one frame prior to the step of estimating the motion vectors of the step of encoding the image.

The step of calculating the motion estimation in advance may calculate SAD values or SSD values for the motion vectors of the plurality of macroblocks as the motion estimation on the plurality of macroblocks.

The step of calculating the motion estimation in advance may comprise the steps of calculating SAD values or SSD values for the motion vectors of the macroblocks and calculating costs of the macroblocks according to the following equation based on Lagrange cost using the SAD values or SSD values and an estimated motion vector of a previous macroblock, which is assumed to be a predetermined fixed value, as the motion estimation on the plurality of macroblocks.

where Cost denotes the quantity of bits required to encode a motion vector, Mv represents a candidate motion vector corresponding to a macroblock for which a motion vector will be estimated, and Mp denotes a motion vector estimated from the previous macroblock of the macroblock.

The predetermined fixed value of the estimated motion vector may correspond to (0,0).

The step of estimating the motion vectors of the macroblocks may estimate a candidate motion vector corresponding to a minimum cost among costs of a macroblock, previously calculated by the multi-processing units, as a motion vector of the macroblock.

Advantageous Effects

According to the encoding system using motion estimation and the encoding method using motion estimation of the present invention, the multi-processing unit capable of performing high-speed parallel processing separately from motion estimation calculates motion estimation on macroblocks, which will be used for motion estimation, in advance and the motion estimator uses the motion estimation previously calculated and stored for motion estimation, and thus an encoding time required to encode a single frame of an image can be reduced to increase the encoding speed of the encoding system.

Furthermore, according to the encoding system using motion estimation and the encoding method using motion estimation of the present invention, the multi-processing unit capable of performing high-speed parallel processing separately from motion estimation calculates motion estimation on macroblocks, which will be used for motion estimation, in advance using a previous frame of the delayed input image instead of a reconfigured previous frame and the motion estimator uses the motion estimation previously calculated and stored for motion estimation. Accordingly, an encoding time required to encode a single frame of an image can be reduced to increase the encoding speed of the encoding system.

BRIEF DESCRIPTION OF DRAWINGS

Further objects and advantages of the invention can be more fully understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

FIG. 1 is a control block diagram of an encoding system using motion estimation according to a first embodiment of the present invention;

FIG. 2 is a control block diagram of an encoding system using motion estimation according to a second embodiment of the present invention;

FIG. 3 is a control block diagram of an encoding system using motion estimation according to a third embodiment of the present invention;

FIG. 4 is a control block diagram of an encoding system using motion estimation according to a fourth embodiment of the present invention;

FIG. 5 is a control flow chart of an encoding method using motion estimation according to an embodiment of the present invention;

FIG. 6 is a control flow chart of an encoding method using motion estimation according to another embodiment of the present invention;

FIG. 7 illustrates an exemplary frame processing flow according to an encoding system and method using motion estimation in accordance with an embodiment of the present invention; and

FIG. 8 illustrates an exemplary frame processing flow according to an encoding system and method using motion estimation in accordance with another embodiment of the present invention.

BEST MODE FOR CARRYING OUT THE INVENTION

The multi-processor 25 corresponding to the plurality of processors calculates SAD values of all motion vectors in search regions corresponding to the macroblocks of the current frame f(n+1) of the input image on the basis of the current frame f(n+1) and a previous frame f(n) corresponding to the input image, provided by the frame buffer 80. That is, the plurality of processors corresponding to the multi-processor 25 can respectively calculate the SAD values of all the macroblocks of the current frame f(n+1) and store the SAD values in the SAD storage unit 27.

The multi-processing unit 20 may correspond to a unit including many processors that can perform high-speed processing and are arranged in parallel, such as a GPU having many processors (corresponding to the multi-processor 25) for processing 3D images. Accordingly, the multi-processing unit 20 can simultaneously calculate the SAD values of all the macroblocks of the current frame f(n+1) at a high speed.

Since the multi-processing unit 20 simultaneously calculates the SAD values for all the macroblocks of the current frame f(n+1) at a high-speed, the multi-processing unit 10 may calculate the SAD values for all the macroblocks of the current frame f(n+1) at least one frame prior to an image frame (for example, the previous frame f(n)′) processed by the motion estimator 60 or the encoder 50.

The motion estimator 60 estimates motion vectors of the macroblocks of the image using the motion estimation on the plurality of macroblocks, that is, the SAD values, calculated by the multi-processing unit 20. The motion estimator 30 estimates the motion vectors of the plurality of macroblocks of the current frame f(n+1) in the raster scan direction.

That is, the motion estimator 60 repeats an operation of acquiring an SAD value with respect to a predetermined macroblock among the SAD values for all the macroblocks of the current frame f(n+1), which are calculated and stored in the SAD storage unit 27 of the multi-processing unit 20, estimating the motion vector of the predetermined macroblock, acquiring an SAD value with respect to the next macroblock in the raster scan direction and estimating the motion vector of the next macroblock to estimate the motion vectors of all the macroblocks of the current frame f(n+1).

Here, the motion estimator 60 can calculate a cost corresponding to each candidate motion vector of each macroblock according to the above-described Equation 2 based on Lagrange cost to estimate the motion vector of each macroblock. That is, the motion estimator estimates a candidate motion vector Mv corresponding to a minimum cost for each macroblock as a final motion vector Mv of each macroblock.

The multi-processing unit 20 calculates SAD values with respect to all the macroblocks of the next frame f(n+2) and store the SAD values in the SAD storage unit 27 while the motion estimator 60 estimates the motion vectors of the macroblocks of the current frame f(n+1) using the SAD values with respect to the macroblocks of the current frame f(n+1), stored in the SAD storage unit 27.

A frame processing flow in the encoding system using motion estimation according to the third embodiment of the present invention, illustrated in FIG. 3, will now be explained with reference to FIG. 7.

As illustrated in FIG. 7, when an image is inputted, the encoder 50 encodes a first frame 0 of the input image and the multi-processing unit 20 calculates SAD values with respect to all the macroblocks of a frame 1 of the input image at a high speed for a time t1 while the first frame 0 is encoded. Here, the multi-processing unit 20 calculates the SAD values with respect to all the macroblocks of the current frame 1 based on the previous frame 0 corresponding to the delayed input image without waiting for reconfiguration of the previous frame 0, and thus the multi-processing unit 20 can calculate the SAD values independently of motion estimation of the previous frame 0. That is, since the SAD values of all the macroblocks of the current frame 1 have been already calculated while the first frame 0 is encoded, the motion estimator 60 can estimate motion vectors of the macroblocks of the current frame 1 using the previously calculated SAD values of the macroblocks of the current frame 1 without calculating the SAD values and the encoder 50 can encode the current frame 1 for an encoding time t2.

In the encoding system using motion estimation according to the third embodiment of the present invention, the multi-processing unit 20 calculates motion estimation (SAD or SSD) to be used for motion estimation in advance on the basis of the previous frame f(n) corresponding to the delayed input image instead of the previous frame f(n)′ reconfigured in the aforementioned encoding system using motion estimation according to the first embodiment of the present invention, and thus the multiprocessing unit 20 can calculate the motion estimation (SAD or SSD) more rapidly without waiting for encoding of the previous frame f(n)′ according to the encoder 50 and reconfiguration of the previous frame f(n)′ and provide the motion estimation to the motion estimator 60. Accordingly, the encoding system using motion estimation according to the third embodiment of the present invention can remarkably shorten the time required to encode a single frame of the image from the conventional encoding time t to t2. That is, the encoding system using motion estimation according to the third embodiment of the present invention can achieve high-speed motion estimation to further increase the encoding speed.

An encoding system using motion estimation according to a fourth embodiment of the present invention will now be explained with reference to FIG. 4.

Referring to FIG. 4, the encoding system using motion estimation according to the fourth embodiment of the present invention includes a frame buffer 80 delaying an input image and outputting the delayed image, a multi-processing unit 20′ for calculating motion estimation on many macroblocks of a current frame of the input image based on the current frame of the input image and a previous frame delayed by the frame buffer 80, a motion estimator 60′ for estimating motion vectors of many macroblocks of the image using the motion estimation on the plurality of macroblocks of the current frame, calculated by the multi-processing unit 20′ in advance, and an encoder 50 for encoding the image based on the motion vectors of the macroblocks, estimated by the motion estimator 60′.

The encoder 50 illustrated in FIG. 4 is identical to the encoder 50 illustrated in FIG. 1 and the frame buffer 80 illustrated in FIG. 4 is identical to the frame buffer illustrated in FIG. 3 so that explanations thereof are omitted.

The multi-processing unit 20′ calculates the motion estimation on the plurality of macroblocks of the input image. Here, the motion estimation may correspond to costs of the macroblocks, obtained according to the above-described Equation 2 using SAD values or SSD values of motion vectors of many macroblocks of a current frame of the input image, which are calculated by the multi-processing unit 20′, and an estimated motion vector of a previous macroblock, which is assumed to be a predetermined fixed value.

That is, multiple processors (referred to as a multi-processor 25′ hereinafter) of the multi-processing unit 20′ calculate SAD values with respect to all motion vectors in search regions respectively corresponding to all the macroblocks of the current frame f(n+1) of the input image on the basis of the current frame f(n+1) of the input image and a previous frame f(n) corresponding to the input image, provided by the frame buffer 80, and store the SAD values in an SAD storage unit 27′.

The multi-processor 25′ calculates a cost corresponding to each candidate motion vector of each macroblock of the current frame f(n+1) according to Equation 2 based on Lagrange cost using the SAD values with respect to all the macroblocks of the current frame f(n+1), stored in the SAD storage unit 27′. Here, the estimated motion vector Mp in Equation 2 is assumed to be the predetermined fixed value. If the estimated motion vector Mp is assumed to be the predetermined fixed value and the motion vector of the previous macroblock is not considered, a waiting time for estimation of the emotion vector of the previous macroblock can be reduced and the multi-processor 25′ can calculate the cost corresponding to each candidate motion vector of each macroblock.

The predetermined fixed value of the estimated motion vector Mp may be (0,0). It will be understood by those skilled in the art that (0,0) is a most suitable fixed value determined in consideration of the fact that a motion vector estimated from a previous macroblock approximates (0,0) in most cases.

The multiple processors of the multi-processor 25′ can respectively calculate costs corresponding to candidate motion vectors of the macroblocks of the current frame f(n+1) and store the costs in the SAD storage unit 27′.

Here, the multi-processing unit 20′ may be a user including many processors that are arranged in parallel and can perform high-speed processing, such as a GPU having multiple processors (corresponding to the multi-processor 25′) for processing 3D images. The multi-processing unit 20′ can simultaneously process the SAD values and the costs with respect to all the macroblocks of the current frame f(n+1) at a high speed.

Here, since the multi-processing unit 20′ calculates the SAD values and the costs with respect to all the macroblocks of the current frame f(n+1), the multi-processing unit 20′ may calculate the SAD values and the costs for all the macroblocks of the current frame f(n+1) at least one frame prior to an image frame (for example, the previous frame f(n)′) processed by the motion estimator 60′ and the encoder 50.

The motion estimator 60′ estimates a candidate motion vector Mv corresponding to a minimum cost among the costs with respect to all the candidate motion vectors corresponding to the plurality of macroblocks, previously calculated by the multiprocessing unit 20′, as a final motion vector of the corresponding macroblock and stores final motion vectors Mv of the macroblocks in the motion vector storage unit 80. That is, the motion estimator 60′ uses the costs of all the candidate motion vectors corresponding to the plurality of macroblocks of the current frame f(n+1), stored in the SAD storage unit 27′ of the multi-processing unit 20′, instead of calculating the costs to estimate a candidate motion vector corresponding to the minimum cost for each macroblock as the final motion vector of each macroblock. This further decreases the encoding time t2 in the frame processing flow illustrated in FIG. 7.

The motion vector storage unit 80 stores the final motion vectors Mv of the macroblocks, estimated by the motion estimator 60′.

The encoder 50 encodes the image based on the motion vectors of the macroblocks, stored in the motion vector storage unit 80, as described above with reference to FIG. 1.

The multi-processing unit 20′ calculates SAD values and costs with respect to all the macroblocks of the next frame f(n+2) and stores the SAD values and the costs in the SAD storage unit 27′ while the motion estimator 60′ estimates the motion vectors of the macroblocks of the current frame f(n+1) using the costs of the macroblocks, which are stored in the SAD storage unit 27′.

In the encoding system using motion estimation according to the fourth embodiment of the present invention, the multi-processing unit 20′ calculates SAD or SSD values to be used for motion estimation in advance on the basis of the previous frame f(n) corresponding to the delayed input image instead of the previous frame f(n)′ reconfigured in the aforementioned encoding system using motion estimation according to the second embodiment of the present invention. Furthermore, the multi-processing unit 20′ calculates motion estimation (costs corresponding to candidate motion vectors of macroblocks) in advance according to the Lagrange cost based Equation 2 in which the estimated motion vector Mp has a fixed value. Accordingly, the multi-processing unit 20 s can calculate the motion estimation (costs corresponding to candidate motion vectors of macroblocks) more rapidly without waiting for encoding of the previous frame f(n)′ according to the encoder 50 and reconfiguration of the previous frame f(n)′ and provide the motion estimation to the motion estimator 60′. Therefore, the encoding system using motion estimation according to the fourth embodiment of the present invention can remarkably shorten the time required to encode a single frame of the image from the conventional encoding time t to t2 and decrease even the encoding time t2. That is, the encoding system using motion estimation according to the fourth embodiment of the present invention can achieve high-speed motion estimation to further increase the encoding speed.

A control flow of an encoding method using motion estimation according to a first embodiment of the present invention, which corresponds to the aforementioned encoding systems according to the first, second, third and fourth embodiments of the present invention, will now be explained with reference to FIG. 5. The encoding method is described with reference to the configuration illustrated in FIG. 1 for convenience of explanation.

The multi-processing unit 10 calculates motion estimation on many macroblocks of an input image in step S10. Here, the motion estimation calculated by the multiprocessing unit 10 may correspond to SAD values or SSD values with respect to motion vectors of many macroblocks of a current frame of the input image. A case that the multi-processing unit 10 calculates SAD values is explained. That is, the multiprocessing unit 10 calculates SAD values for motion vectors in search regions corresponding to all the macroblocks of the current frame f(n+1) of the input image on the basis of the current frame f(n+1) of the input image and a reconfigured previous frame f(n)′ provided by the frame storage unit 90 in step S10.

The motion estimator 30 estimates motion vectors of the macroblocks of the current frame f(n+1) in the raster scan direction using the motion estimation on the plurality of macroblocks, calculated by the multi-processing unit 10, that is, the SAD values, in steps S20 through S60.

Specifically, the motion estimator 30 designates a to-be-processed macroblock of the current frame f(n+1) as a first block in the raster scan direction in step S20. The motion estimator 30 acquires the SAD value corresponding to the to-be-processed macroblock from the SAD values with respect to all the macroblocks of the current frame f(n+1), previously calculated and stored in the multi-processing unit 10, and calculates costs corresponding to candidate motion vectors of the to-be-processed macroblock according to the following Equation 2 based on Lagrange cost in step S30. Then, the motion estimator 30 estimates a candidate motion vector Mv corresponding to a minimum cost among the costs corresponding to the candidate motion vectors of the macroblock as a final motion vector Mv of the to-be-processed macroblock in step S40 and provides the final motion vector Mv of the macroblock to the encoder 50.

$\begin{matrix} {{\text{?}\text{?}\text{indicates text missing or illegible when filed}}\mspace{194mu}} & \left\lbrack {{Equation}\mspace{14mu} 2} \right\rbrack \end{matrix}$

The motion estimator 30 determines whether the processed macroblock corresponds to the last macroblock of the current frame f(n+1) in step S50, designates the next macroblock in the raster scan direction when it is determined that the processed macroblock is not the last macroblock in step S60, and executes step S30 on the next macroblock.

The multi-processing unit 10 executes step S10 on the next frame f(n+1) while the motion estimator 30 carries out steps S20 through S60. Here, the multi-processing unit 10 may perform step S10 at least one frame prior to the operation of the motion estimator 30 to perform the steps S20 through S60.

When it is determined that the processed macroblock corresponds to the last macroblock of the current frame f(n+1) in step S50, motion estimation for the current frame f(n+1) is finished. Of course, motion estimation for the next frame f(n+1) is performed according to the above-described control flow.

The encoding method using motion estimation according to the first embodiment of the present invention can calculate motion estimation (SAD values or SSD values) to be used for motion estimation in advance through the multi-processing unit capable of performing high-speed parallel processing and perform motion estimation according to the motion estimator using the motion estimation (SAD values or SSD values) of macroblocks, previously calculated and stored, to remarkably reduce the encoding time t′ required to encode a single frame of the image as compared to the encoding time t of the conventional encoding system. That is, the encoding method using motion estimation according to the first embodiment of the present invention can achieve high-speed motion estimation to improve the encoding speed.

An encoding method using motion estimation corresponding to the encoding system according to the third embodiment of the present invention can be explained with reference to FIG. 5.

The encoding method further includes a step (not shown) of delaying the input image frame by frame before step S10. The multi-processing unit 10 calculates SAD values for motion vectors in search regions corresponding to all the macroblocks of the current frame f(n+1) of the input image on the basis of the current frame f(n+1) of the input image and the previous frame f(n) corresponding to the delayed image in step S10.

Accordingly, the encoding method using motion estimation can execute step S10 of calculating the motion estimation (SAD values or SSD values) of the macroblocks of the current frame f(n+1) more rapidly without having a time consumed for the encoder to encode the previous frame f(n)′ and to reconfigure the previous frame and provide the motion estimation to the motion estimator. Furthermore, the encoding method using motion estimation corresponding to the encoding system according to the third embodiment of the present invention can make the encoding time t2 required to encode a single frame of the image shorter than the encoding time t of the conventional encoding system and even than the encoding time t′ of the encoding system according to the first embodiment of the present invention, as illustrated in FIG. 8.

An encoding method using motion estimation corresponding to the encoding system according to the second embodiment of the present invention will now be explained with reference to FIGS. 2 and 6.

The multi-processing unit 10′ calculates motion estimation on many macroblocks of an input image in steps S110 and S120. Here, the motion estimation may correspond to costs of many macroblocks of a current frame of the input image, which are obtained according to the aforementioned equation 2 using SAD values or SSD values (the multi-processing unit 10′ calculates SAD values in the current embodiment of the present invention) with respect to motion vectors of the macroblocks of the current frame and an estimated motion vector of a previous macroblock, which is assumed to be a fixed value.

That is, the multi-processing unit 10′ calculates SAD values or SSD values (the multi-processing unit 10′ calculates SAD values in the current embodiment of the present invention) for motion vectors in search regions corresponding to all the macroblocks of the current frame f(n+1) of the input image on the basis of the current frame f(n+1) and a reconfigured previous frame f(n)′ provided by the frame storage unit 90 in step S110. The multi-processing unit 10′ calculates costs corresponding to candidate motion vectors of each macroblock according to the aforementioned Equation 2 based on Lagrange cost using the previously calculated SAD values of the macroblocks in step S120. Here, the costs may be calculated on the assumption that the estimated motion vector Mp in Equation 2 corresponds to a predetermined fixed value (0,0). If the estimated motion vector Mp is assumed to be the predetermined fixed value and the motion vector of the previous macroblock is not considered, a waiting time for estimation of the motion vector of the previous macroblock can be shortened and the multi-processing unit 10′ can calculate the costs corresponding to the candidate motion vectors of each macroblock at a high speed/in parallel.

The motion estimator 30′ estimates motion vectors of the plurality of macroblocks in the raster scan direction using the motion estimation on the plurality of macroblocks, that is, the costs, in steps S130, S140, S150 and S160.

More specifically, the motion estimator 30′ designates a to-be-processed macroblock of the current frame f(n+1) as a first block in the raster scan direction in step S130. The motion estimator 30′ acquires the cost corresponding to the to-be-processed macroblock from the costs of all the macroblocks of the current frame f(n+1), previously calculated and stored in the multi-processing unit 10′, and estimates the candidate motion vector Mv corresponding to a minimum cost among costs of candidate motion vectors of the to-be-processed macroblock as a final motion vector Mv of the to-be-processed macroblock in step S140. Then, the motion estimator 30′ provides the final motion vector Mv of the macroblock to the encoder 50.

The motion estimator 30′ determines whether the processed macroblock corresponds to the last macroblock of the current frame f(n+1) in step S150, designates the next macroblock in the raster scan direction when it is determined that the processed macroblock does not correspond to the last macroblock of the current frame f(n+1) in step S160 and executes step S140 on the next macroblock.

The multi-processing unit 10′ executes steps S110 and S120 while the motion estimator 30′ performs steps S130, S140, S150 and S160. Here, the multi-processing unit 10′ may perform steps S110 and S120 on the next frame f(n+2) at least one frame prior to the operation of the motion estimator 30′ to perform steps S130, S140, S150 and S160.

When it is determined that the processed macroblock corresponds to the last macroblock of the current frame f(n+1) in step S150, motion estimation for the current frame f(n+1) is finished and motion estimation for the next frame f(n+1) is performed according to the above-described control flow.

The encoding method using motion estimation according to the second embodiment of the present invention can calculate SAD values or SSD values to be used for motion estimation in advance through the multi-processing unit capable of performing high-speed parallel processing, calculate motion estimation (costs corresponding to candidate motion vectors of macroblocks) in advance according to Equation 2 based on Lagrange cost having a fixed value as the estimated motion vector Mp and use the costs corresponding to the candidate motion vectors of the macroblocks, previously calculated and stored, for motion estimation according to the motion estimator to reduce the encoding time t′ required to encode a single frame of the image such that the encoding time t′ becomes shorter than the encoding time t of the conventional encoding system and even than the encoding time of the encoding system according to the first embodiment of the present invention.

An encoding method using motion estimation corresponding to the encoding system according to the fourth embodiment of the present invention can be explained with reference to FIG. 6.

The encoding method further includes a step (not shown) of delaying the input image frame by frame before step S110. The multi-processing unit 20′ calculates SAD values for motion vectors in search regions corresponding to all the macroblocks of the current frame f(n+1) of the input image on the basis of the current frame f(n+1) of the input image and a previous frame f(n) corresponding to the delayed image in step 5110. The multi-processing unit 20′ calculates costs corresponding to candidate motion vectors of each macroblock according to the above-described Equation 2 based on Lagrange cost using the previously calculated SAD values corresponding to the macroblocks of the current frame f(n+1) in step S120.

Accordingly, the encoding method using motion estimation can execute step S110 of calculating the motion estimation (SAD values or SSD values) of the macroblocks of the current frame f(n+1) more rapidly without having a time consumed for the encoder to encode the previous frame f(n)′ and to reconfigure the previous frame. Furthermore, the encoding method using motion estimation corresponding to the encoding system according to the fourth embodiment of the present invention can reduce the encoding time t2 required to encode a single frame of the image such that the encoding time t2 becomes shorter than the encoding time t of the conventional encoding system and even than the encoding time of the encoding system according to the third embodiment of the present invention, as illustrated in FIG. 8.

While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.

INDUSTRIAL APPLICABILITY

According to the encoding system and encoding method using motion estimation which can calculate motion estimation to be used for motion estimation in advance through a multi-processing unit capable of performing high-speed parallel processing separately from motion estimation and perform motion estimation using motion estimation on macroblocks, previously calculated and stored, through a motion estimator to reduce a time required to encode a single frame of an image and improve an encoding speed, a motion estimation speed and an encoding speed can be increased and an image providing speed and throughput can be remarkably enhanced. Furthermore, an encoder applied to the encoding system has sufficient sale potential. 

1-25. (canceled)
 26. An encoding method using motion estimation with an encoding apparatus, the encoding method comprising: determining a multi-processing region for processing a plurality of blocks independently or in parallel; obtaining motion prediction information relating to a first block in the multiprocessing region independently of a second block other than the first block in the multiprocessing region, the first block being one of the plurality of the blocks in the multiprocessing region; determining a motion vector relating to the first block based on the motion prediction information; and generating a prediction signal relating to the first block by performing an inter prediction based on the determined motion vector and a reference frame stored in a frame buffer, wherein the encoding apparatus includes the frame buffer.
 27. The encoding method of claim 26, wherein the motion prediction information includes at least one of SAD values with respect to the first block, candidate motion vectors with respect to the first block or costs corresponding to the candidate motion vectors.
 28. The encoding method of claim 27, wherein the motion prediction information relating to the first block in the multi-processing region is obtained based on at least one third block neighboring to the first block which is not included in the multi-processing region.
 29. The encoding method of claim 26, wherein motion vectors relating to the plurality of the blocks in the multi-processing region are determined sequentially in raster scan direction.
 30. A decoding method using motion compensation with a decoding apparatus, the decoding method comprising: determining a multi-processing region for processing a plurality of blocks independently or in parallel; obtaining motion prediction information relating to a first block in the multiprocessing region independently of a second block other than the first block in the multiprocessing region, the first block being one of the plurality of the blocks in the multiprocessing region; determining a motion vector relating to the first block based on the motion prediction information; and generating a prediction signal relating to the first block by performing an inter prediction based on the determined motion vector and a reference frame stored in a frame buffer, wherein the decoding apparatus includes the frame buffer.
 31. The decoding method of claim 30, wherein the motion prediction information includes at least one of SAD values with respect to the first block, candidate motion vectors with respect to the first block or costs corresponding to the candidate motion vectors.
 32. The decoding method of claim 31, wherein the motion prediction information relating to the first block in the multi-processing region is obtained based on at least one third block neighboring to the first block which is not included in the multi-processing region.
 33. The decoding method of claim 30, wherein motion vectors relating to a plurality of the blocks in the multi-processing region are determined sequentially in raster scan direction. 